package com.movie.mapper;

import com.movie.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {

    // 根据用户名和密码查找用户
    User findByUsernameAndPassword(@Param("username") String username,
                                   @Param("password") String password);

    // 根据用户名查找用户
    User findByUsername(@Param("username") String username);

    // 插入新用户
    void insertUser(User user);
}
